<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Voodoo Shader Framework: K:/VoodooShader/DX9_Module/DX9_Module.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>K:/VoodooShader/DX9_Module/DX9_Module.cpp</h1><a href="_d_x9___module_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;<a class="code" href="_d_x9___module_8hpp.html">DX9_Module.hpp</a>&quot;</span>
<a name="l00003"></a>00003 
<a name="l00004"></a><a class="code" href="namespace_voodoo_shader.html">00004</a> <span class="keyword">namespace </span>VoodooShader
<a name="l00005"></a>00005 {
<a name="l00006"></a><a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html">00006</a>         <span class="keyword">namespace </span>DirectX9
<a name="l00007"></a>00007         {
<a name="l00008"></a>00008                 <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#adacd3a0db50850e97a17317243adbfda">Adapter::Adapter</a>(IDirect3DDevice9 * device)
<a name="l00009"></a>00009                         : mDevice(device)
<a name="l00010"></a>00010                 {
<a name="l00011"></a>00011                         HRESULT hr = cgD3D9SetDevice(device);
<a name="l00012"></a>00012                         <span class="keywordflow">if</span> ( !SUCCEEDED(hr) )
<a name="l00013"></a>00013                         {
<a name="l00014"></a>00014                                 <span class="keywordflow">throw</span> <a class="code" href="class_voodoo_shader_1_1_exception.html" title="Core engine class for the Voodoo Shader Framework.">Exception</a>(<span class="stringliteral">&quot;Voodoo DX9: Could not set Cg device.&quot;</span>, __FILE__, __FUNCTION__, __LINE__);
<a name="l00015"></a>00015                         }
<a name="l00016"></a>00016 
<a name="l00017"></a>00017                         <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * core = VoodooShader::Core::GetSingletonPtr();
<a name="l00018"></a>00018                         <span class="keywordflow">if</span> ( !core )
<a name="l00019"></a>00019                         {
<a name="l00020"></a>00020                                 <span class="comment">// Narrowly avoided segfault right here. Luckily caught before it ever ran.</span>
<a name="l00021"></a>00021                                 <span class="comment">//core-&gt;GetLog()-&gt;Log(&quot;Voodoo DX9: Initializing core...\n&quot;);</span>
<a name="l00022"></a>00022                                 core = <span class="keyword">new</span> <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">VoodooShader::Core</a>();
<a name="l00023"></a>00023                         }
<a name="l00024"></a>00024                         
<a name="l00025"></a>00025                         core-&gt;<a class="code" href="class_voodoo_shader_1_1_core.html#a3dae50629a1c77bd5ac311829ba48c6b">GetLog</a>()-&gt;<a class="code" href="class_voodoo_shader_1_1_logger.html#a33cbb21507fc3a0f31f462480530aa45" title="Log a basic message.">Log</a>(<span class="stringliteral">&quot;Voodoo DX9: Starting adapter...\n&quot;</span>);
<a name="l00026"></a>00026 
<a name="l00027"></a>00027                         <span class="keywordflow">try</span>
<a name="l00028"></a>00028                         {
<a name="l00029"></a>00029                                 core-&gt;<a class="code" href="class_voodoo_shader_1_1_core.html#a9c389353ac90eac2ea3d2d059707945c" title="Attach an Adapter to this Core.">SetAdapter</a>(reinterpret_cast&lt;VoodooShader::Adapter*&gt;(<span class="keyword">this</span>));
<a name="l00030"></a>00030                                 core-&gt;<a class="code" href="class_voodoo_shader_1_1_core.html#a3dae50629a1c77bd5ac311829ba48c6b">GetLog</a>()-&gt;<a class="code" href="class_voodoo_shader_1_1_logger.html#a33cbb21507fc3a0f31f462480530aa45" title="Log a basic message.">Log</a>(<span class="stringliteral">&quot;Voodoo DX9: Core adapter set to this.\n&quot;</span>);
<a name="l00031"></a>00031                         } <span class="keywordflow">catch</span> ( <a class="code" href="class_voodoo_shader_1_1_exception.html" title="Core engine class for the Voodoo Shader Framework.">VoodooShader::Exception</a> &amp; exc ) {
<a name="l00032"></a>00032                                 core-&gt;<a class="code" href="class_voodoo_shader_1_1_core.html#a3dae50629a1c77bd5ac311829ba48c6b">GetLog</a>()-&gt;<a class="code" href="class_voodoo_shader_1_1_logger.html#a33cbb21507fc3a0f31f462480530aa45" title="Log a basic message.">Log</a>(<span class="stringliteral">&quot;Voodoo DX9: Error setting adapter on core.\n&quot;</span>);
<a name="l00033"></a>00033                                 <span class="comment">//exit(1);</span>
<a name="l00034"></a>00034                         }
<a name="l00035"></a>00035 
<a name="l00036"></a>00036                         cgD3D9EnableDebugTracing(CG_TRUE);
<a name="l00037"></a>00037 
<a name="l00038"></a>00038                         this-&gt;mDevice-&gt;CreateVertexBuffer(4 * <span class="keyword">sizeof</span>(<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html">FSVert</a>), 0, <a class="code" href="_d_x9___module_8hpp.html#a6bd9a594223c54eab984d8abd6a4cf63">D3DFVF_CUSTOMVERTEX</a>,
<a name="l00039"></a>00039                                 D3DPOOL_DEFAULT, &amp;<a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">FSQuadVerts</a>, NULL);
<a name="l00040"></a>00040 
<a name="l00041"></a>00041                         <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html">FSVert</a> g_Vertices[4];
<a name="l00042"></a>00042                         g_Vertices[0].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a06c79d8fa83648b726a2f812bfdabd61">x</a> = g_Vertices[0].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#ac0ec93fde57b4d7be1bb65041f91ec2a">y</a> = -1.0f;
<a name="l00043"></a>00043                         g_Vertices[2].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a06c79d8fa83648b726a2f812bfdabd61">x</a> = g_Vertices[2].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#ac0ec93fde57b4d7be1bb65041f91ec2a">y</a> = 0.5f;
<a name="l00044"></a>00044                         g_Vertices[1].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a06c79d8fa83648b726a2f812bfdabd61">x</a> = g_Vertices[3].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#ac0ec93fde57b4d7be1bb65041f91ec2a">y</a> = -1.0f;
<a name="l00045"></a>00045                         g_Vertices[3].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a06c79d8fa83648b726a2f812bfdabd61">x</a> = g_Vertices[1].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#ac0ec93fde57b4d7be1bb65041f91ec2a">y</a> = 0.5f;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047                         g_Vertices[0].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a5b01bd1b05671ad05910126f8f3dfc94">tu</a> = g_Vertices[1].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a5b01bd1b05671ad05910126f8f3dfc94">tu</a> = 0.0f;
<a name="l00048"></a>00048                         g_Vertices[0].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">tv</a> = g_Vertices[3].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">tv</a> = 0.0f;
<a name="l00049"></a>00049                         g_Vertices[2].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a5b01bd1b05671ad05910126f8f3dfc94">tu</a> = g_Vertices[3].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a5b01bd1b05671ad05910126f8f3dfc94">tu</a> = 1.0f;
<a name="l00050"></a>00050                         g_Vertices[2].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">tv</a> = g_Vertices[1].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">tv</a> = 1.0f;
<a name="l00051"></a>00051 
<a name="l00052"></a>00052                         g_Vertices[0].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">color</a> = g_Vertices[2].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">color</a> = 0xF800F8FF;
<a name="l00053"></a>00053                         g_Vertices[1].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">color</a> = g_Vertices[3].<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">color</a> = 0xFF8F008F;
<a name="l00054"></a>00054 
<a name="l00055"></a>00055                         VOID * pVertices;
<a name="l00056"></a>00056                         <a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">FSQuadVerts</a>-&gt;Lock(0, <span class="keyword">sizeof</span>(g_Vertices), &amp;pVertices, 0);
<a name="l00057"></a>00057                         memcpy(pVertices, g_Vertices, <span class="keyword">sizeof</span>(g_Vertices));
<a name="l00058"></a>00058                         <a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">FSQuadVerts</a>-&gt;Unlock();
<a name="l00059"></a>00059                 }
<a name="l00060"></a>00060 
<a name="l00061"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a5e4fcac36d88d35c37398d6699f8d332">00061</a>                 <span class="keywordtype">void</span> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a5e4fcac36d88d35c37398d6699f8d332">Adapter::Bind</a>(<a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * shader)
<a name="l00062"></a>00062                 {
<a name="l00064"></a>00064                         CGeffect effect = shader-&gt;<a class="code" href="class_voodoo_shader_1_1_shader.html#ac73117845f381b5fe325a516b5a7889d">GetEffect</a>();
<a name="l00065"></a>00065                         CGtechnique tech = cgGetFirstTechnique(effect);
<a name="l00066"></a>00066                         CGpass pass = cgGetFirstPass(tech);
<a name="l00067"></a>00067 
<a name="l00068"></a>00068                         <span class="keywordflow">while</span> ( pass != NULL )
<a name="l00069"></a>00069                         {
<a name="l00070"></a>00070                                 cgSetPassState(pass);
<a name="l00071"></a>00071                                 this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a07db001620d4d92d444f30096a30a789">DrawFSQuad</a>();
<a name="l00072"></a>00072                                 cgResetPassState(pass);
<a name="l00073"></a>00073                                 pass = cgGetNextPass(pass);
<a name="l00074"></a>00074                         }
<a name="l00075"></a>00075                 }
<a name="l00076"></a>00076 
<a name="l00077"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a4cd316e51e7d817ba883a02ba787d4a9">00077</a>                 <span class="keywordtype">void</span> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a4cd316e51e7d817ba883a02ba787d4a9">Adapter::Unbind</a>()
<a name="l00078"></a>00078                 {
<a name="l00079"></a>00079 
<a name="l00080"></a>00080                 }
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a07db001620d4d92d444f30096a30a789">00082</a>                 <span class="keywordtype">void</span> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a07db001620d4d92d444f30096a30a789">Adapter::DrawFSQuad</a>()
<a name="l00083"></a>00083                 {
<a name="l00084"></a>00084                         IDirect3DVertexBuffer9 * sourceBuffer;
<a name="l00085"></a>00085                         UINT sourceOffset, sourceStride;
<a name="l00086"></a>00086                         DWORD sourceFVF;
<a name="l00087"></a>00087 
<a name="l00088"></a>00088                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;GetStreamSource(0, &amp;sourceBuffer, &amp;sourceOffset, &amp;sourceStride);
<a name="l00089"></a>00089                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;GetFVF(&amp;sourceFVF);
<a name="l00090"></a>00090 
<a name="l00091"></a>00091                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;SetStreamSource(0, <a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">FSQuadVerts</a>, 0, <span class="keyword">sizeof</span>(<a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html">FSVert</a>));
<a name="l00092"></a>00092                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;SetFVF(<a class="code" href="_d_x9___module_8hpp.html#a6bd9a594223c54eab984d8abd6a4cf63">D3DFVF_CUSTOMVERTEX</a>);
<a name="l00093"></a>00093 
<a name="l00094"></a>00094                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;BeginScene();
<a name="l00095"></a>00095                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2); 
<a name="l00096"></a>00096                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;EndScene();
<a name="l00097"></a>00097                         
<a name="l00098"></a>00098                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;SetStreamSource(0, sourceBuffer, sourceOffset, sourceStride);
<a name="l00099"></a>00099                         this-&gt;<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">mDevice</a>-&gt;SetFVF(sourceFVF);
<a name="l00100"></a>00100                 }
<a name="l00101"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a9d76c1c1cc667d645aa7f666faa3eb4c">00101</a>                 <span class="keywordtype">void</span> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a9d76c1c1cc667d645aa7f666faa3eb4c">Adapter::Apply</a>(<a class="code" href="class_voodoo_shader_1_1_parameter.html">Parameter</a> * param)
<a name="l00102"></a>00102                 {
<a name="l00103"></a>00103                         <span class="keywordflow">switch</span> ( param-&gt;<a class="code" href="class_voodoo_shader_1_1_parameter.html#a7b2998eb9aef71eabfbb9d896185bafe">mType</a> )
<a name="l00104"></a>00104                         {
<a name="l00105"></a>00105                         <span class="keywordflow">case</span> CG_FLOAT4:
<a name="l00106"></a>00106                         <span class="keywordflow">case</span> CG_FLOAT3:
<a name="l00107"></a>00107                         <span class="keywordflow">case</span> CG_FLOAT2:
<a name="l00108"></a>00108                         <span class="keywordflow">case</span> CG_FLOAT1:
<a name="l00109"></a>00109                         <span class="keywordflow">case</span> CG_FLOAT:
<a name="l00110"></a>00110                                 cgD3D9SetUniform(param-&gt;<a class="code" href="class_voodoo_shader_1_1_parameter.html#add6050107bd208df639a013ecc9f6f21">mParam</a>, param-&gt;<a class="code" href="class_voodoo_shader_1_1_parameter.html#ab6f21d4463a8b99d16928e7025b1f9b7">mValueFloat</a>);
<a name="l00111"></a>00111                                 <span class="keywordflow">break</span>;
<a name="l00112"></a>00112                         <span class="keywordflow">case</span> CG_SAMPLER:
<a name="l00113"></a>00113                         <span class="keywordflow">case</span> CG_SAMPLER1D:
<a name="l00114"></a>00114                         <span class="keywordflow">case</span> CG_SAMPLER2D:
<a name="l00115"></a>00115                         <span class="keywordflow">case</span> CG_SAMPLER3D:
<a name="l00116"></a>00116                         <span class="keywordflow">case</span> CG_SAMPLERCUBE:
<a name="l00117"></a>00117                                 <span class="comment">//cgD3D9SetTextureParameter(param-&gt;mParam, param-&gt;mValueTexture-&gt;mTextureObject);</span>
<a name="l00118"></a>00118                                 <span class="keywordflow">break</span>;
<a name="l00119"></a>00119                         }
<a name="l00120"></a>00120                 }
<a name="l00121"></a>00121 
<a name="l00122"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#aab823bb03fcfd6879c6c3c4cb76d17a2">00122</a>                 <span class="keywordtype">void</span> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#aab823bb03fcfd6879c6c3c4cb76d17a2">Adapter::HandleError</a>(CGcontext context, CGerror error, <span class="keywordtype">void</span> * core)
<a name="l00123"></a>00123                 {
<a name="l00124"></a>00124                         <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * actualCore = <span class="keyword">reinterpret_cast&lt;</span><a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a>*<span class="keyword">&gt;</span>(core);
<a name="l00125"></a>00125                         actualCore-&gt;<a class="code" href="class_voodoo_shader_1_1_core.html#a3dae50629a1c77bd5ac311829ba48c6b">GetLog</a>()-&gt;<a class="code" href="class_voodoo_shader_1_1_logger.html#a8afae3081609613a221f49d186a23697" title="Allows for formatted logging.">Format</a>-&gt;<a class="code" href="class_voodoo_shader_1_1_formatter.html#a719f8f5b3f61bf9262da0b2f27cece7e" title="Begins logging a message (passes an initial formatting string).">Record</a>(<span class="stringliteral">&quot;Voodoo DX9: Cg error: %s\n&quot;</span>).<a class="code" href="class_voodoo_shader_1_1_formatter.html#acd189536db2a1077fe75431b9acf868f" title="Passes an argument to the Format.">With</a>(cgD3D9TranslateCGerror(error)).<a class="code" href="class_voodoo_shader_1_1_formatter.html#ae71867d0eb64b74d04030213928cadb5" title="Finalizes a formatted string and prints it to the log.">Done</a>();
<a name="l00126"></a>00126                 }
<a name="l00127"></a>00127         }
<a name="l00128"></a>00128 }
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Oct 14 19:58:31 2010 for Voodoo Shader Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
